<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>List</title>
<link type="text/css" rel="stylesheet" href="${pageContext.request.contextPath }/static/css/pageBaseStyle.css">
<link type="text/css" rel="stylesheet" href="${pageContext.request.contextPath }/static/css/myPage.css" />
<script type="text/javascript" src="${pageContext.request.contextPath }/static/js/jquery.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath }/static/js/calendar.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath }/static/js/pageJs.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath }/static/js/myPage.js"></script>
</head>
<body>
	<h3>学生列表</h3>
	<table border="1" style="border-collapse:collapse;width:100%;">
		<tr>
			<td>学号</td>
			<td>姓名</td>
			<td>性别</td>
			<td>电话</td>
			<td>生日</td>
			<td>地址</td>
			<td>专业</td>
			<td>班级</td>
			<td>操作</td>
			
		</tr>
		<c:forEach items="${lists }" var="student">
			<tr>
				<td>${student.id }</td>
				<td>${student.name }</td>
				<td>
				<c:if test="${student.sex eq 0}">
					女
				</c:if>
				<c:if test="${student.sex eq 1}">
					男
				</c:if>
				</td>
				<td>${student.phone }</td>
				<td class="brith">${student.brith }</td>
				<td>${student.address }</td>
				<td>${student.grade.specialty.specialtyName }</td>
				<td>${student.grade.name }</td>
				<td>
					<a href="stu_toEdit?stuId=${student.id }" title="${student.name }">修改</a> |
					<a href="stu_delete?stuId=${student.id }" title="${student.name }">删除</a>
				</td>
			</tr>
		</c:forEach>
	
	</table>
	
	<!-- 分页 -->
	<div style="position:absolute;bottom:200px;right:20px;">
		<jsp:include page="myPage.jsp"></jsp:include>
	</div>
	
</body>
</html>